package com.source.lightfowl.barcodeMachineGrantAndRecovery.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.CrossOrigin;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author: xcy
 * @Date:Create：in 2020/3/16 21:54
 * @Description: 脚标机回收实体类
 */
@Data
@Entity
@Table(name = "barcode_machine_recovery_v2")
public class BarcodeMachineRecovery {

    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @Id
    private int id;
    private int barcodeMachineId; //脚标机id
    private int stallsId; //档口id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date recoveryDate;  //回收时间 需要前端传递参数
    private String recoveryPersonId; //回收人员id
    private String sendBackPersonId; //送回人员id
    private double deposit; //退回押金
    private String createBy; //创建者
    private LocalDateTime createTime; //创建时间 自动赋值
    private String status; //脚标机状态 0：正常 1：故障
    private String msg; //维修备注
}
